package com.torry.edss.domain.service.impl;

import com.sun.org.apache.regexp.internal.RE;
import com.torry.edss.application.cache.TradingDayCache;
import com.torry.edss.domain.annotations.TacticBean;
import com.torry.edss.domain.enums.TacticMode;
import com.torry.edss.domain.service.TacticService;
import org.apache.commons.lang3.StringUtils;

@TacticBean(mode = TacticMode.SHIZIXING)
public class ShizixingTacticServiceImpl implements TacticService {
    @Override
    public boolean realTimePicking() {
        return false;
    }

    @Override
    public boolean hisPicking(String date) {
        String limitDay = TradingDayCache.getPreviousTradingDay(date);
        if (StringUtils.isBlank(limitDay)) return true;
        return false;
    }

    @Override
    public boolean refreshProfit(Integer limit) {
        return false;
    }
}
